var express = require('express');
var router = express.Router();
const path = require('path');
const notice = require(path.join(global.initUrl, 'mongodb/index')).notice

//校园资讯数据接口
router.get("/list", function (req, res, next) {
    notice.find({}, function (err, data) {
        res.send(data)
    })
})
module.exports=router